package com.hh.demo.feignClient;

import com.hh.demo.domain.Login;
import com.hh.demo.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 黄浩
 * @create 2022-07-18 9:49
 */
@FeignClient(value = "service-uaa",fallbackFactory = LoginFeignClientFallBackFactory.class)
@RequestMapping("/login")
public interface LoginFeignClient {
    @RequestMapping(value="/saveLogin",method= RequestMethod.POST)
    JSONResult saveLogin(@RequestBody Login login);
}
